x11: Fix a crash
authorMatthias Clasen <mclasen@redhat.com>
Sat, 11 Nov 2017 17:07:11 +0000 (12:07 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 11 Nov 2017 17:07:11 +0000 (12:07 -0500)
This was crashing the moment a second window is opened.

gdk/x11/gdkdevice-xi2.c

index 78f27821859d1f7503a89cf891246e9db8bced87..210c72bb108e4050e7f088c291e722577465d636 100644 (file)
@@ -359,7 +359,7 @@ gdk_x11_device_xi2_query_state (GdkDevice        *device,
     }
 
   if (!GDK_X11_DISPLAY (display)->trusted_client ||
-      !XIQueryPointer (GDK_WINDOW_XDISPLAY (window),
+      !XIQueryPointer (GDK_DISPLAY_XDISPLAY (display),
                        device_xi2->device_id,
                        xwindow,
                        &xroot_window,